﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Beauty.BLL;
using Beauty.Model;
using WebUI.Models;
namespace WebUI.Controllers
{
    public class BaseController : Controller
    {
        protected override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            base.OnActionExecuting(filterContext);
            if (filterContext.HttpContext.Session[DataConfig.UserSessionName] == null)
            {
                filterContext.HttpContext.Response.Redirect("~/");
                return;
            }
        }
    }
}